<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
	<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
		<tr bgcolor="#EFEFEF">
			<td width="15%"><div align="center" class="style11"><strong>Produto</strong></div></td>
			<td width="15%"><div align="center" class="style11"><strong>Qtde</strong></div></td>
			<td width="15%"><div align="center" class="style11"><strong>Valorunit</strong></div></td>
			<td width="20%"><div align="center" class="style11"><strong>Total</strong></div></td>
			<td width="10%"><div align="center" class="style11"><strong>IPI</strong></div></td>
			<td width="25%"><div align="center"><span class="style11"><strong>Excluir</strong></span></div></td>
		</tr>
		<c:if test="${not empty listaProd}">
			<c:forEach var="listaProd" items="${sessionScope.listaProd}" varStatus="count">
				<tr bgcolor="#EFEFEF">
					<td><div align="center"><span class="style11">${listaProd.codigo}</span></div></td>
					<td><div align="center" class="style11">${listaProd.quantidade}</div></td>
					<td><div align="right" class="style11"><fmt:formatNumber value="${listaProd.valor}" type="currency"/></div></td>
					<td><div align="right" class="style11"><fmt:formatNumber value="${listaProd.valor*listaProd.quantidade}" type="currency"/></div></td>
					<td><div align="center" class="style11">${listaProd.ipi}%</div></td>
					<td><div align="center">
						<input name="Submit222" type="button" class="botaoexcluir" value="Excluir" onClick="excluir(${count.index})">
					</div></td>
				</tr>
			</c:forEach>
		</c:if>
	</table>